package cn.kgc.springcloud.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 课工场
 * @date 2024/4/29
 * @description
 */
@FeignClient(value = "SERVICE2",fallback = Service2ClientFallback.class)
public interface Service2Client {

     @GetMapping("/service2/m1")
     String  method1(@RequestParam("id") Integer id);


     @GetMapping("/service2/m2")
     String  method2(@RequestParam("id") Integer id);


}
